﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200059F RID: 1439
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FinishFirstTalkNpcScRsp : IMessage<FinishFirstTalkNpcScRsp>, IMessage, IEquatable<FinishFirstTalkNpcScRsp>, IDeepCloneable<FinishFirstTalkNpcScRsp>, IBufferMessage
	{
		// Token: 0x17001273 RID: 4723
		// (get) Token: 0x060040AF RID: 16559 RVA: 0x000B1180 File Offset: 0x000AF380
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FinishFirstTalkNpcScRsp> Parser
		{
			get
			{
				return FinishFirstTalkNpcScRsp._parser;
			}
		}

		// Token: 0x17001274 RID: 4724
		// (get) Token: 0x060040B0 RID: 16560 RVA: 0x000B1187 File Offset: 0x000AF387
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FinishFirstTalkNpcScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001275 RID: 4725
		// (get) Token: 0x060040B1 RID: 16561 RVA: 0x000B1199 File Offset: 0x000AF399
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FinishFirstTalkNpcScRsp.Descriptor;
			}
		}

		// Token: 0x060040B2 RID: 16562 RVA: 0x000B11A0 File Offset: 0x000AF3A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishFirstTalkNpcScRsp()
		{
		}

		// Token: 0x060040B3 RID: 16563 RVA: 0x000B11A8 File Offset: 0x000AF3A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishFirstTalkNpcScRsp(FinishFirstTalkNpcScRsp other) : this()
		{
			this.npcId_ = other.npcId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060040B4 RID: 16564 RVA: 0x000B11D9 File Offset: 0x000AF3D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishFirstTalkNpcScRsp Clone()
		{
			return new FinishFirstTalkNpcScRsp(this);
		}

		// Token: 0x17001276 RID: 4726
		// (get) Token: 0x060040B5 RID: 16565 RVA: 0x000B11E1 File Offset: 0x000AF3E1
		// (set) Token: 0x060040B6 RID: 16566 RVA: 0x000B11E9 File Offset: 0x000AF3E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NpcId
		{
			get
			{
				return this.npcId_;
			}
			set
			{
				this.npcId_ = value;
			}
		}

		// Token: 0x17001277 RID: 4727
		// (get) Token: 0x060040B7 RID: 16567 RVA: 0x000B11F2 File Offset: 0x000AF3F2
		// (set) Token: 0x060040B8 RID: 16568 RVA: 0x000B11FA File Offset: 0x000AF3FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060040B9 RID: 16569 RVA: 0x000B1203 File Offset: 0x000AF403
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FinishFirstTalkNpcScRsp);
		}

		// Token: 0x060040BA RID: 16570 RVA: 0x000B1211 File Offset: 0x000AF411
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FinishFirstTalkNpcScRsp other)
		{
			return other != null && (other == this || (this.NpcId == other.NpcId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060040BB RID: 16571 RVA: 0x000B1250 File Offset: 0x000AF450
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.NpcId != 0U)
			{
				num ^= this.NpcId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060040BC RID: 16572 RVA: 0x000B12A8 File Offset: 0x000AF4A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060040BD RID: 16573 RVA: 0x000B12B0 File Offset: 0x000AF4B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060040BE RID: 16574 RVA: 0x000B12BC File Offset: 0x000AF4BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.NpcId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.NpcId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060040BF RID: 16575 RVA: 0x000B1318 File Offset: 0x000AF518
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.NpcId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NpcId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060040C0 RID: 16576 RVA: 0x000B1370 File Offset: 0x000AF570
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FinishFirstTalkNpcScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.NpcId != 0U)
			{
				this.NpcId = other.NpcId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060040C1 RID: 16577 RVA: 0x000B13C0 File Offset: 0x000AF5C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060040C2 RID: 16578 RVA: 0x000B13CC File Offset: 0x000AF5CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 40U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.NpcId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400197C RID: 6524
		private static readonly MessageParser<FinishFirstTalkNpcScRsp> _parser = new MessageParser<FinishFirstTalkNpcScRsp>(() => new FinishFirstTalkNpcScRsp());

		// Token: 0x0400197D RID: 6525
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400197E RID: 6526
		public const int NpcIdFieldNumber = 2;

		// Token: 0x0400197F RID: 6527
		private uint npcId_;

		// Token: 0x04001980 RID: 6528
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04001981 RID: 6529
		private uint retcode_;
	}
}
